DispatcherNotifiableObject
Ecng.ComponentModel
Forward INotifyPropertyChanged notifications to dispatcher thread. Multiple notifications for the same property may be forwarded only once.
Inherits: CustomObjectWrapper<T>
Constructors
DispatcherNotifiableObject
public DispatcherNotifiableObject(IDispatcher dispatcher, T obj, TimeSpan interval)
dispatcherNotifiableObject = DispatcherNotifiableObject(dispatcher, obj, interval)
Instance of DispatcherNotifiableObject.
- dispatcher
- Dispatcher to use for invoking property changed notifications.
- obj
- Parent object to wrap.
- interval
- Interval between property changed notifications.
Methods
DisposeManaged
protected override void DisposeManaged()
dispatcherNotifiableObject.DisposeManaged()
Disposes the managed resources. Override this method to add custom clean up of managed resources.
NeedToNotify
protected virtual bool NeedToNotify(string propName)
result = dispatcherNotifiableObject.NeedToNotify(propName)
Called when property changed.
OnGetEvents
protected override IEnumerable<EventDescriptor> OnGetEvents()
result = dispatcherNotifiableObject.OnGetEvents()
Gets the event descriptors from the wrapped object.
Returns: Collection of proxy event descriptors.